<?php
$this->pageTitle = '操作成功';
$this->breadcrumbs=array(
	'操作成功 :)',
);
?>

<div class="wp">
	<div class="goods_header end_header"><h3>Success:</h3></div>
	<div class="goods" style="width:960px;height:200px;color:red;line-height:200px;text-align:center;">
		 <span id="NextTo"></span>秒后自动跳转。<a id="directurl" href="<?php echo $url; ?>" > 点击跳转 </a>
	</div>
</div>
<?php
Yii::app()->clientScript->registerScript('opSuccess',"
	function GoNext(seconds){         
		var next = $('#NextTo');
		var url = $('#directurl').attr('href');
		next.html(seconds);    
		if(--seconds>0){       
			setTimeout(function(){ GoNext(seconds) },1000);
         }else{         
			location.href=url;       
         }     
    }
	GoNext(5);	 
");
?>
